#ifndef DYNAMICWIDGET_H
#define DYNAMICWIDGET_H

#include <QWidget>
#include <QMessageBox>
#include <QTimer> //定时器类
#include "type.h"
#include "wechatclientwidget.h"
#include "wechatserverwidget.h"

namespace Ui {
class DynamicWidget;
}

class DynamicWidget : public QWidget
{
    Q_OBJECT

public:
    explicit DynamicWidget(QWidget *parent = nullptr);
    ~DynamicWidget();
    void initDynamic();
    void startLogin();
    void rememberUser();
    void startWechat();

private slots:
    void on_checkBoxremember_stateChanged(int arg1);
    void on_checkBoxauto_stateChanged(int arg1);
    void on_pushButtonlogon_clicked();
    void on_pushButtoncancel_clicked();

private:
    Ui::DynamicWidget *ui;
    QString currentName = "zhoujy";
    QString currentPwd = "123456";
    wechatServerWidget w;
    WechatClientWidget client;
};

#endif // DYNAMICWIDGET_H
